<?php
/**
 * 物业端
 */

namespace App\Http\Routes;


use Illuminate\Contracts\Routing\Registrar;
class TenementRoutes
{

    public function map(Registrar $routes)
    {
        $routes ->group(['prefix' => 'tenement','namespace'=>'Tenement'],function($tenement){

            //登录
            $tenement    ->post('login','UserController@login');
            $tenement    ->post('Updatepersonal','UserController@Updatepersonal');

            $tenement    ->post('home','HomeController@home');

            $tenement    ->post('ClickStart/{type}','HomeController@ClickStart');

            //发布小区公告
            $tenement    ->post('AddNotice','NoticeController@AddNotice');
            //修改小区公告
            $tenement    ->post('UpdateNotice','NoticeController@UpdateNotice');
            //删除小区公告
            $tenement    ->post('DelNotice','NoticeController@DelNotice');

            //获取全部小区公告
            $tenement    ->post('AllNotice','NoticeController@AllNotice');
            //获取小区公告详情
            $tenement    ->post('SelectNotice','NoticeController@SelectNotice');


            //物业报修
            $tenement    ->post('AllRepairs/{type}/{types}','RepairsController@AllRepairs');
           // $tenement    ->post('InfoRepairs/{type}','RepairsController@InfoRepairs');
            //详情
            $tenement    ->post('SelectRepairs','RepairsController@SelectRepairs');
            $tenement    ->post('updateRepairs','RepairsController@updateRepairs');
            //备注提交
            $tenement    ->post('wtbznr','RepairsController@wtbznr');

            //投诉建议
            $tenement    ->post('AllComplaint','ComplaintController@AllComplaint');

            $tenement    ->post('OkComplaint','ComplaintController@OkComplaint');
            //投诉建议详情
            $tenement    ->post('SelectComplaint','ComplaintController@SelectComplaint');
            //发布回复
            $tenement    ->post('InsertComplaint','ComplaintController@InsertComplaint');
            //删除回复
            $tenement    ->post('DelComplaint','ComplaintController@DelComplaint');

            $tenement    ->post('SubmitComplaint','ComplaintController@SubmitComplaint');


            //员工管理中心
            $tenement    ->post('AllEmployee','EmployeeController@AllEmployee');
            $tenement    ->post('SelectEmployee','EmployeeController@SelectEmployee');

            $tenement    ->post('SubmitEmployee','EmployeeController@SubmitEmployee');

            //访客管理
            $tenement    ->post('AllVisitor/{type}','VisitorController@AllVisitor');
            $tenement    ->post('SelectVisitor','VisitorController@SelectVisitor');
            $tenement    ->post('SelectVisitor','VisitorController@SelectVisitor');
            $tenement    ->post('ScanCode','VisitorController@ScanCode');

            //缴费管理
            $tenement    ->post('AllPayment/{type}','PaymentController@AllPayment');
            $tenement    ->post('MonthPayment/{type}','PaymentController@MonthPayment');
            $tenement    ->post('SelectPayment','PaymentController@SelectPayment');
            $tenement    ->post('Reminder','PaymentController@Reminder');
            $tenement    ->post('Tcreminder','PaymentController@Tcreminder');

            //停车费
            $tenement    ->post('AllFees/{type}','PaymentController@AllFees');
            $tenement    ->post('MonthPayments/{type}','PaymentController@MonthPayments');
            $tenement    ->post('SelectPayments','PaymentController@SelectPayments');



            //住房管理
            $tenement    ->post('AllResident','ResidentController@AllResident');
            $tenement    ->post('SelectResident','ResidentController@SelectResident');
            $tenement    ->post('InfoResident','ResidentController@InfoResident');

            $tenement    ->post('SubmitResident','ResidentController@SubmitResident');


            //银行卡
            $tenement    ->post('AllBank','BankController@AllBank');
            $tenement    ->post('DindingBank','BankController@DindingBank');
            $tenement    ->post('AddBank','BankController@AddBank');
            $tenement    ->post('UpdateBank','BankController@UpdateBank');
            $tenement    ->post('DelBank','BankController@DelBank');
            $tenement    ->get('SelectBank','BankController@SelectBank');
            $tenement    ->post('detail','BankController@detail');
            $tenement    ->post('villagemoney','BankController@villagemoney');
            $tenement    ->post('withdraw','BankController@withdraw');


            //扫码进门
            $tenement    ->post('ScanCode','ScanCodeController@ScanCode');
            $tenement    ->post('noticecs','NoticeController@noticecs');

            //shell
            $tenement    ->get('pro_reminder','Propertyscript@pro_reminder');

           /* $tenement    ->get('parking/{id}/{type}','PcController@parking');*/

        });
    }
}


